<template>
  <div class="maintain-layout">
    <snackbar style-color="#4A4A4A"
              back-color="#FAFAFA"
              status-color="#FAFAFA"
              style="background: #FAFAFA !important"
              :fixed="true">
    </snackbar>

    <div class="maintain-bodey" v-for="(item,index) in dataArray" :key="index">
      <div class="maintain-bodey-top">
        <span>店铺：</span>
        <span>{{ item.shopName }}</span>
      </div>
      <div class="hengxian"></div>

      <div class="maintain-bodey-middle">
        <span>维修费用：</span>
        <span>￥ {{ item.cost }}</span>
        <div></div>
        <span>维修车牌：</span>
        <span>{{ item.plate }}</span>
        <div></div>
        <span>维修日期：</span>
        <span>{{ item.date }}</span>
      </div>

      <!--      //维修描述-->
      <div class="maintenances-describe">
        <span>维修描述</span>
        <div></div>
      </div>


    </div>

    <div class="bottom-layout">
      <span class="add-btn">提交</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'maintenances',
  data() {
    return {
      dataArray: [
        {
          shopName: "东环卓尔汽车维修店",
          cost: 200,
          plate: "桂B 77888",
          date: "2021-2-28"
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.maintain-layout {
  width: 100%;
  height: 100vh;

  .maintain-bodey {
    width: 94%;
    height: 80vh;
    background: #FFFFFF;
    box-shadow: 0px 0px 6px 1px rgba(121, 121, 121, 0.3);
    border-radius: 4px;
    border: 0px solid rgba(222, 222, 222, 0.31);
    display: flex;
    flex-direction: column;
    //margin-left: 4%;
    margin: 20px auto;

    .maintain-bodey-top {
      width: 90%;
      margin-left: 5%;
      height: 8vh;

      span {
        font-size: 0.4rem;
        position: relative;
        top: 5vh;

      }
    }

    .hengxian {
      width: 94%;
      margin-left: 3%;
      //margin-right: 14px;
      height: 1px;
      background-color: rgba(201, 201, 201, 0.5);
      margin-top: 22px;
    }

    .maintain-bodey-middle {
      font-size: 0.4rem;
      margin-left: 5%;
      //height: 20vh;
      span {
        display: inline-block;
        margin-top:18px;
      }
    }
    //维修描述
    .maintenances-describe {
      span{
        font-size: 0.4rem;
        display: inline-block;
        margin-top: 35px;
        margin-left: 5%;
      }
      div {
        width: 94%;
        height: 35vh;
        border-radius: 5px;
        margin-top: 18px;
        margin-left: 3%;
        background: #E9E9E9 ;
      }
    }


  }

  .bottom-layout {
    position: fixed;
    bottom: 0px;
    width: 100vw;
    height: 47px;
    display: flex;
    flex-direction: row;

    .add-btn {
      flex: 1;
      height: 47px;
      background: linear-gradient(221deg, #7ED785 0%, #64C367 100%);
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;

      font-size: 14px;
      color: #FFFFFF;
    }
  }

}

</style>
